<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>备份清单</title>
<link href="html/css/css.css" rel="stylesheet" type="text/css" />
<script Language="JavaScript" src="html/js/functions.js"></script>

<script type="text/javascript">
// <![CDATA[
var listItem;
window.onload = function() {
	listItem = new list_item_onclick('list_item');
	listItem.init();
};

function selectSingle(obj)
{
	var id = listItem.get_input_value();
	
	if(id == 0)
	{
		msg_box('请至少选择一个');
		return false;
	}

	var id_arr = id.split(",");
	var id_num = id_arr.length
	
	if(id_num > 1)
	{
		msg_box('只能选择一个');
		return false;
	}
	
	obj.href += '&batabase_dir=' + id;
	
	return true;
}

function selectMany(obj)
{
	var id = listItem.get_input_value();
	
	if(id == 0)
	{
		msg_box('请至少选择一个');
		return false;
	}
	
	obj.href += '&size= '+ $('size').value + '&table_name=' + id;
	return true;
}


// ]]>
</script>
</head>

<body style="height:auto;overflow-x:hidden">

<div class="top_tool">
<div>
<a href="?c=database&d=runReduction"  onclick="return selectSingle(this);"><img src="html/images/database_lightning.gif" border="0" align="absmiddle" /> 还原</a>
</div>
</div>

<div class="list_intro"> 
	<div class="left">[ <b>备份文件列表</b>]</div>
    <div style="clear:both"></div>
</div>

<div class="list_menu">
<span class="checkbox"><input name="ID[]" type="checkbox" value="" onclick="listItem.click_all(this);" /></span>
<span class="tilte">备份文件名</span>
<span class="type"></span>
<span class="type">备份时间</span>
<span class="type"></span>
<span class="type"></span>
</div>
<div class="list_item" id="list_item">
<if $DirList>
      <foreach name="DirList" key="key" var="var">
    <div>
    <span class="checkbox"><input name="id[]" type="checkbox" value="[$var.File]" /></span>
    <span class="tilte">[@iconv('gbk','UTF-8',$var.Name)]</span>
    <span class="type">[$var.Rows]</span>
    
    <span class="tiltetilte">[@date('Y-m-d H:i:s',$var.Date)]</span>
    <span class="type">[$var.Data_length]</span>
    <span class="type" style="width:120px;">[$var.Update_time]</span>
    
    <div style="clear:both; border:none"></div>
    </div>
</foreach>
<else>
<div>
<span class="tiltetilte">您还没有备份任何数据！</span>
</div>
</if>
<div class="page">
    文件夹总数:[$DirNum] 个。<font color="#FF0000">注:备份文件夹只能通过FTP删除</font></div>
</div>
</div>
</body>
</html>
